import config from "@/config"
import http from "@/utils/request"
export default {
	login: {
		url: `${config.API_URL}/login`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.postForm(this.url, data, { 'Content-Type': 'application/x-www-form-urlencoded'});
		}
	},
	loginout: {
		url: `${config.API_URL}/logout`,
		name: "退出",
		get: async function(){
			return await http.get(this.url);
		}
	},

	getCodeImg: {
		url: `${config.API_URL}/captchaImage`,
		name: "获取验证码",
		get: async function(){
			return await http.get(this.url);
		}
	},
	getInfo: {
		url: `${config.API_URL}/profile`,
		name: "获取用户详细信息",
		get: async function(){
			return await http.get(this.url);
		}
	}
}